﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _02_JadenCasingStrings
{
    public class JadenCase
    {
        public static string toJadenCase(string phrase)
        {
            if(phrase==null||phrase=="")
            {
                return phrase;
            }
            return string.Concat(phrase.Split(' ').Select(s => char.ToUpper(s[0]) + s.Substring(1)+" ")).TrimEnd();
        }
    }
}
